package com.yooohooo.designpattern.factorybuilder;

import com.yooohooo.designpattern.bean.phone.ApplePhone;
import com.yooohooo.designpattern.builder.ApplePhoneBuilder;
import com.yooohooo.designpattern.builder.PhoneDirector;
import com.yooohooo.designpattern.factory.method.PhoneFactory;

/**
 * @ClassName: AppleFactory
 * @Description:
 * @author Yooo
 * @date 2017年6月16日 上午1:50:50
 * 
 */
public class ApplePhoneFactory implements PhoneFactory {
	private PhoneDirector director = new PhoneDirector();

	public ApplePhone getPhone() {
		ApplePhoneBuilder builder = new ApplePhoneBuilder();
		return (ApplePhone) director.construct(builder);
	}
}
